<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
	<title> {$title} </title>
	<meta http-equiv="content-Type" content="text/html;charset=UTF-8">
	<meta name="Generator" content="EditPlus">
	<meta name="Author" content="">
	<meta name="Keywords" content="">
	<meta name="Description" content="">
	<script type="text/javascript" src="{:_PUBLIC_}/Js/jquery.js"></script>
	<script type="text/javascript" src="{:_PUBLIC_}/Js/slide.js"></script>
	<script type="text/javascript" src="{:__TMPLPUB__}/Js/check.js"></script>
	<link rel="stylesheet" type="text/css" href="{:__TMPLPUB__}/Css/style.css" />
 </head>
 <body>
	<div id="container">
		<div id="header">
			<div id="logo">
					<h1>{$GLOBALS['___config___']['site_name']}</h1>
					<div class="decription">{$GLOBALS['___config___']['site_decription']}</div>
			</div>
			<div id="head">
				{if $GLOBALS['___login___']===false}
					<a href="{:Dyhb::U('index/index')}">首页</a>
					<a href="{:Dyhb::U('article/add')}">我的博客</a>
					<a href="{:__ROOT__}/blog/admin.php/public/login">登陆</a>
					<a href="{:Dyhb::U('user/register')}">博客注册</a>
				{d*else}
					<a>{$GLOBALS['___login___']['regname']}</a>
					<a href="{:Dyhb::U('article/add')}">我的博客</a>
					<a href="{:__ROOT__}/blog/admin.php/index/index">管理中心</a>
					<a href="{:Dyhb::U('user/logout')}">安全退出</a>
				{/if}
			</div><!--/head-->
			<div id="login">
				{if $GLOBALS['___login___']===false}
					<form name="login_form" action="{:Dyhb::U('user/login')}" method="post">
							<label for="user_name">用户名:</label><input class="eighty" type="text" name="user_name" id="user_name"/>
							<label for="user_password" >密码:</label><input class="eighty"  type="password" name="user_password" id="user_password" value=""/>
							<label for="string" >验证码:</label><input class="fifty" type="text" name="string" id="string" />
							<img name="img" id="img" src="{:Dyhb::U('user/seccode')}" onclick='this.src=this.src+"?"+new Date().getTime()' style="cursor:pointer;"/>
							<input class="string" type="submit" name="sub" value="登陆" onclick="javascript:return login_check();" />
					</form>
				{d*else}
					<a style="margin:0px 150px 0px 0px;font-size:17px;">欢迎你的加入,Yming博客有你更精彩!</a>
				{/if}
			</div><!--/login-->
		</div>
		<!--/header-->
		<div id="first_nav">
			<div class="calendar">
				<php>include (APP_PATH.'/common/'.'calendar.php');</php>
			</div>
			<div class="latest_note">
				<div class="side-title"><a href="{:Dyhb::U('Article/allList')}">更多文章>></a></div>
				<div class="side-content">
				<if condition="!empty($arrObt)">
					<foreach for=arrObt>
						<if condition="$value:article_title gt 50">
						<a href="{:Dyhb::U('article/show?id='.$value->article_id)}">{$i}.{$value:article_title|G+subString=0,12}......</a><br>
						<else /><a href="{:Dyhb::U('article/show?id='.$value->article_id)}">{$i}.{$value:article_title|G+subString=0,15}</a><br>
						</if>
					</foreach>
				<else />
					<a>暂无文章</a>
				</if>
				</div>
			</div><!--/latest_note-->
			<div class="latest_picture">
				<div class="side-title"><a href="?" class="more">更多图片>></a></div>
				<div class="picture">
					<a><img src="{$img_path}" alt="my" /></a>
				</div>
			</div><!--/latest_picture-->
		</div>
		<!--/first_nav-->
		<div id="public">
			</form>
			<form id="search" action="" method="post">
				<input class="submit" type="submit" value="" name="ssub" />
				<input class="text "type="text" name="search" />
			</form>
			<ul class="nav nav-tabs">
				<li class="active"><a href="#1">home</a></li>
				<li><a href="#1">login</a></li>
				<li><a href="#1">logout</a></li>
			</ul>
		</div>
		<!--/public-->
		<div id="footer">
		</div>
		<!--/footer-->
		<div id="backtop" >
			<a href="javascript:scroll(0,0);"><img src="{:_PUBLIC_}/Images/backtop.png"/></a>
		</div>
	</div>
<script type="text/javascript">
	$(document).ready(function(){
		$("#year").change(function(){
			var data ='year='+$("#year").val()+'&month='+$("#month").val();
			$.post("{:_PUBLIC_}/../common/calendar.php",data,function(result){
				$(".calendar").html(result);
			});
		});
		$("#month").change(function(){
			var data ='year='+$("#year").val()+'&month='+$("#month").val();
			$.post("{:Dyhb::U('index/index')}",data,function(result){
				
			});
		});
	});
</script>
 </body>
</html>